package com.lzs.system.mapper;

import com.lzs.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author 刘中帅
 * @since 2020-11-24
 */
@Repository
public interface MenuMapper extends BaseMapper<Menu> {
    //查询用户所具有的权限
    List<Menu> selectMenuByUserId(Long userId);
    List<String> queryPermissionByUserId(Long userId);
    Menu findMenuById(Long menuId);
}
